package de.nak.fireDepartment.dao;

import java.util.Collection;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import de.nak.fireDepartment.model.User;
/**
 * User data access object.
 * @author Sven Redelin
 */
public class UserDAO extends HibernateDaoSupport{

	/**
	 * Finds and returns all Users.
	 * @return a list of users
	 */
	@SuppressWarnings("unchecked")
	public Collection<User> findAll() {
		return (Collection<User>)getHibernateTemplate().find("from User");
	}
	
}
